<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<%
		Throwable throwable = (Throwable)request.getAttribute("javax.servlet.error.exception");
		Integer statusCode = (Integer) request.getAttribute("javax.servlet.error.status_code");
		String servletName = (String) request.getAttribute("javax.servlet.error.servlet_name");
	%>
	<title><%=statusCode%> - 系统内部错误1</title>
</head>

<body>
	<h2><%=statusCode%> - 系统发生错误1</h2>

	<%
		if (servletName == null){
			servletName = "Unknown";
		}
		String requestUri = (String) request.getAttribute("javax.servlet.error.request_uri");
		if (requestUri == null){
			requestUri = "Unknown";
		}
		out.println("<h3>Error information</h3>");
		out.println("Servlet Name : " + servletName + "</br></br>");
		out.println("Request URI: " + requestUri + "<br><br>");

		if (throwable != null ){
			out.println("Exception Type : " + throwable.getClass( ).getName( ) + "</br></br>");
			out.println("The exception message: " + throwable.getMessage( ));
			throwable.printStackTrace();
		}

	%>


</body>
</html>
